package com.example.flowermall.service;

import com.example.flowermall.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.flowermall.entity.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoman
 * @since 2023-06-13
 */
public interface IProductService extends IService<Product> {



    Result insertGoods(Product product);

    Product getGoodsById(Integer id);

    void updateGoods(Product product);

    void deleteGoods(Integer id);

    List<Product> selectGoods(String productName);
    String selectCategory(Integer productId);
    List<Product> selectGoodsByCategoryId(Integer id);

    List<Product> selectByTagId(Integer id);

    Product getById(Integer id);

    List<Product> getAllCategory();
}
